//全屏
function full_screen(){
    var element     = document.documentElement;
    if(element.requestFullscreen) {
        element.requestFullscreen();
    } else if(element.mozRequestFullScreen) {
        element.mozRequestFullScreen();
    } else if(element.msRequestFullscreen){
        element.msRequestFullscreen();
    } else if(element.webkitRequestFullscreen) {
        element.webkitRequestFullScreen();
    }
}

//数据存储
function Data(key, val){
    key     = config.prefix_data+key;
    if(val){
        localStorage.setItem(key, JSON.stringify(val));
    }
    return JSON.parse(localStorage.getItem(key));
}